package com.mftour.moudles.entity;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class ConsolePermissionDetail extends ConsolePermission {

	private Integer userId;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
	}
	
	public static void main(String[] args) {
		Integer a=5;
		System.out.println(a==5);
		a=500;
		
		System.out.println(a==500);
		System.out.println(a.equals(500));
		ConsolePermissionDetail cp=new ConsolePermissionDetail();
		cp.setPermissionId(1);
		cp.setPermissionName("test");
		System.out.println(ToStringBuilder.reflectionToString(cp,ToStringStyle.MULTI_LINE_STYLE));
		System.out.println(ToStringBuilder.reflectionToString(cp,ToStringStyle.DEFAULT_STYLE));
		System.out.println(ToStringBuilder.reflectionToString(cp,ToStringStyle.NO_FIELD_NAMES_STYLE));
		System.out.println(ToStringBuilder.reflectionToString(cp,ToStringStyle.SHORT_PREFIX_STYLE));
		System.out.println(ToStringBuilder.reflectionToString(cp,ToStringStyle.SIMPLE_STYLE));
	}
}
